<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <script>
        // //标签模板
        // let a = "苹果";
        // let b = "香蕉";

        // let eat = kitchen `今天的早餐是${a}和${b}`;

        // function kitchen(strings, ...values) {
        //     let result = "";
        //     for (let i = 0; i < values.length; i++) {
        //         result += strings[i];
        //         result += values[i]
        //     }

        //     result += strings[strings.length - 1]

        //     return result;
        // }

        // console.log(eat)

        // let x = String.raw `hi\n${2+3}`
        // let y = `hi\n${2 + 3}`
        // console.log(x, y)

        let obj = {
            a: 1
        };
        let o = Object.setPrototypeOf(obj, {
            b: 2
        });
        console.log(o)

        let x = Object.getPrototypeOf(o);
        console.log(x)
    </script>
</body>

</html>